package com.letoken.platform.repo.ecommerce.dto;

import com.letoken.platform.pub.annotation.content.ContentCheck;
import com.letoken.platform.pub.annotation.content.ContentEnum;
import com.letoken.platform.pub.req.QueryReqBase;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "分类查询商品")
public class UserProductReq extends QueryReqBase {
    @ApiModelProperty(value = "二级类别id 分类查询使用")
    private Integer categoryId;

    @ApiModelProperty(value = "一级类别id 分类查询使用")
    private Integer oneCategoryId;


    @ApiModelProperty("搜索关键字")
    @ContentCheck(type = ContentEnum.LOCAL_CONTENT, allowNull = "true",message = "80407034")
    private String keywords;


    @ApiModelProperty(value = "店铺ID")
    private Integer shopId;


    //-1该字段失效  0综合推荐 1销量 2价格正序 3价格倒序 4店铺新品 5综合评分
    private Integer type;

    // 最低价
    private BigDecimal minRealPrice;
    // 最高价
    private BigDecimal maxRealPrice;

    // 是否免运费 1是 2否
    private Integer freeShipping;


}
